package org.toonan.rental.chart;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class PointView extends View
{
	private float HEIGHT = 350.0F;
	private String month = "";
	private Paint pointPaint;
	private float rate = 3.4F;
	private float value = 10.0F;
	
	public PointView(Context paramContext, float paramFloat, String paramString)
	{
		super(paramContext);
		this.value = paramFloat;
		this.month = paramString;
		init();
	}
	
	private void drawPoint(Canvas paramCanvas)
	{
		paramCanvas.drawCircle(5.0F, this.HEIGHT - this.value * this.rate, 5.0F, this.pointPaint);
	}
	
	private void drawText(Canvas paramCanvas)
	{
		Paint localPaint = new Paint();
		localPaint.setColor(-16777216);
		localPaint.setTextSize(25.0F);
		localPaint.setAntiAlias(true);
		paramCanvas.drawText("" + this.value, 0.0F, this.HEIGHT - this.value * this.rate - 8.0F, localPaint);
		paramCanvas.drawText(this.month, 0.0F, 35.0F + this.HEIGHT, localPaint);
	}
	
	private void init()
	{
		this.pointPaint = new Paint();
		this.pointPaint.setAntiAlias(true);
		this.pointPaint.setShadowLayer(3.0F, 5.0F, -5.0F, -16777216);
		this.pointPaint.setColor(-256);
	}
	
	protected void onDraw(Canvas paramCanvas)
	{
		super.onDraw(paramCanvas);
		drawPoint(paramCanvas);
		drawText(paramCanvas);
	}
	
	public void setPointColor(int paramInt)
	{
		this.pointPaint.setColor(paramInt);
	}
}

/*
 * Location: E:\org.toonan.rental.chart.1353877036934_dex2jar.jar Qualified Name:
 * org.toonan.rental.chart.PointView JD-Core Version: 0.6.0
 */